#!/usr/bin/env bash
script=$1
start_input=$2
end_input=$3


start_date=$(date -d "$start_input" +"%Y%m%d")
end_date=$(date -d "$end_input" +"%Y%m%d")

d=${start_date}

while [ "$d" != "$end_date" ]; do
${script} ${d}

d=$(date -d "$d + 1 day" +%Y%m%d)

done
